package day05;

public class ArrayLX {
    public static void main(String[] args) {
        //int[] arr =new int[10];
        int[] arr =new int[3];
        int[] arr1 ={1,2,3};
        int[] arr2 = new int[]{2,3,4};
        int[] arr3 ;
        arr3=new int[]{2,3,4,5};
        System.out.println(arr.length);
        System.out.println(arr1[2]);
        arr[0]=666;
        arr[1]=777;
        arr[2]=888;
        System.out.println(arr[1]);
        System.out.println(arr[arr.length-2]);
        int[] arr5 = new int[20];
        for (int i=0;i<arr5.length;i++){
            arr5[i]=(int)(Math.random()*100);
            System.out.println(arr5[i]);
        }
        }

    }

